from curl_cffi import requests

from util.headers import get_header


session = requests.Session()
url = "https://haowallpaper.com/homeView?isSel=true&page=16"
res = session.get(url, headers=get_header())


url_img = "https://haowallpaper.com/link/common/file/getVideoReduce/17357545570094464"
res_img = session.get(url_img, headers=get_header()).content
with open("static/壁纸/工藤.mp4", "wb") as f:
    f.write(res_img)
    print("成功")
